package com.service.pay.diamond.mapper;

import com.service.pay.diamond.vo.UserVO;
import com.service.sso.sdk.model.UserModel;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserMapper {
    @Autowired
    ModelMapper mapper;

    public UserVO modelToVo(UserModel model) {
        return mapper.map(model, UserVO.class);
    }
}
